export default {
  search: [
    { op: 'between', name: 'create_time', type: 'date', field: 'm.create_time', label: '创建日期', default: '', hide: false },
    { op: 'like', dict: 'user', name: 'create_user_name', type: 'autocomplete', field: 'm.create_user_name', label: '创建人', default: '', hide: false },
    { op: '_fn_', name: 'catalog', type: 'treeSelect', field: 'catalog', label: '物料分类', options: [], includeRoot: true, key: 'id', default: '', hide: false },
    { op: 'like', name: 'material_name', type: 'input', field: 'm.material_name', label: '物料名称', default: '', hide: false },
    { op: 'like', name: 'material_model', type: 'input', field: 'm.material_model', label: '物料规格', default: '', hide: false },
    { op: 'like', name: 'brand', type: 'input', field: 'm.brand', label: '品牌', default: '', hide: false },
    { op: 'like', name: 'origin', type: 'input', field: 'm.origin', label: '产地', default: '', hide: false },
    { op: 'eq', name: 'sell', type: 'toggle', field: 'm.sell', label: '是否上架', default: '', trueValue: 1, trueLabel: '是', falseValue: 0, falseLabel: '否', hide: false },
    { op: 'eq', name: 'recommend', type: 'toggle', field: 'm.recommend', label: '是否推荐', default: '', trueValue: 1, trueLabel: '是', falseValue: 0, falseLabel: '否', hide: false }
  ]
}
